package com.yishun.springboot.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.yishun.springboot.pojo.YzwProjectMaster;
import com.yishun.springboot.pojo.YzwWorkerList;

/**
 * 云筑网保存信息mapper
 * @author YS
 *
 */
@Component
public interface YzwProjectMasterMapper {

 //<Map<String,Object>>
	//根据projectCode查找总包详细信息
	List findProjectInDetailByprojectCode(@Param(value="projectCode")String projectCode);
	
	//根据平台登录主体name进行查询
	List<Map<String,Object>> findProjectInDetailByLoginName(@Param(value="name")String name);
	
    List<YzwProjectMaster> findAll();
    
    //web层需要查找一条项目信息是否存在，不存在return
    int findByOneRecord(@Param(value="projectCode")String projectCode);
    
    int deleteAll();
    
    int insertAll (YzwProjectMaster yzwProjectMaster);


}